<h1>Browse {$content.genre_name}</h1>
Check {imdb url=$config.imdb_genre_url|replace:"%%":$content.genre_name} for {$content.genre_name}<br /><br />

<form method="get" action="index.php">
<input type="hidden" name="what" value="movie" />
<input type="hidden" name="do" value="browse" />
<input type="hidden" name="id" value="{$content.genre_id}" />
<input type="hidden" name="filter" value="{$content.filter}" />
<table width="100%">
	<tr>
		<td>{mm_alpha key="filter" base=$content.alpha_base}</td>

		<td align="right">
			<input type="text" name="search" value="{$content.search}" />
			<input type="submit" value="Search" /><br />
			<a href="index.php?what=search&amp;do=advanced">Advanced Search</a> |
			<a href="index.php?what=movie&amp;do=browse&amp;id={$content.genre_id}">Reset Results</a>
		</td>
	</tr>
</table>
</form>
<form method="post" action="index.php" id="frm_browse">
<input type="hidden" name="what" value="mymovies" />
<input type="hidden" name="do" value="add" />
<table class="data_table" width="100%" cellpadding="5" cellspacing="0">
	<tr class="data_table_header">
		<td width="1%"><input type="checkbox" id="select_all" /></td>
		<td>Title</td>
		<td>Owners</td>
		<td>In your collection?</td>
		<td></td>
	</tr>
	{if $content.movies}
		{foreach from=$content.movies item=m}
			<tr class="{cycle values="data_table_row_1,data_table_row_2"}">
				<td><input type="checkbox" name="id[]" value="{$m.id}" /></td>
				<td title="{$m.title}">{$m.title|truncate:"35"} ({$m.year}) {imdb url=$m.imdb_url}</td>
				<td>{$m.owners}</td>
				<td>{if $m.in_collection}Tick{else}Cross{/if}</td>
				<td align="right" nowrap="nowrap">
					{if $m.in_collection == false}<a href="index.php?what=mymovies&amp;do=add&amp;id={$m.id}">Add to collection</a> | {/if}
					{if $m.in_collection == false && $m.in_wishlist == false}<a href="index.php?what=wishlist&amp;do=add&amp;id={$m.id}">Add to wishlist</a> | {/if}
					<a href="index.php?what=movie&amp;do=view&amp;id={$m.id}">View</a> |
					<a href="#" onclick="movie_list_add({$m.id});" title="Add this to your custom list">MARK</a>
				</td>
			</tr>
		{/foreach}
	{else}
		<tr>
			<td colspan="5" align="center">No movies can be found for {$content.genre_name}</td>
		</tr>
	{/if}
</table>
</form>
{if $content.movies}
	<img src="templates/{$config.smarty_template}/images/up_arrow.gif" /> Do With Selected:
	<a href="#" onclick="add_collection(gId('frm_browse'));">Add to collection</a> |
	<a href="#" onclick="add_wishlist(gId('frm_browse'));">Add to wishlist</a>
	<script type="text/javascript" language="javascript">init_select_all('frm_browse');</script>
	{pagination pagination=$content.pagination}
{/if}

{if $content.search != ""}
<br /><br />
<form method="post" action="index.php">
<input type="hidden" name="what" value="movie" />
<input type="hidden" name="do" value="add" />
<table>
	<tr>
		<td>{if $content.search !== ''}Cant find '<strong>{$content.search}</strong>'???{else}Cant find a movie???{/if} Try Adding it!</td>
	</tr>

	<tr>
		<td><input name="title" value="{$content.search}" /> <input type="submit" value="Add Movie!" /></td>
	</tr>
</table>
</form>
{/if}